LinuxQMISDK-Lite  SLQS04.00.27
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
QmiTransaction.h File Reference

Go to the source code of this file.

Data Structures

struct  QmiTransaction
 

Typedefs

typedef void(* QMI_RESPONSE_CALLBACK )(uint8_t *qmiPacket, uint16_t qmiPacketSize, void *pResponseCallbackContext)
 
typedef struct QmiTransaction QmiTransaction
 

Functions

void QmiTransaction_Initialize (QmiTransaction *pThis, uint16_t transactionId, uint16_t messageId, QMI_RESPONSE_CALLBACK pResponseCallback, void *pResponseCallbackContext)
 

Typedef Documentation

typedef void(* QMI_RESPONSE_CALLBACK)(uint8_t *qmiPacket, uint16_t qmiPacketSize, void *pResponseCallbackContext)

This funcion prototype represents the callback which is called by the QMI service when a QMI response is received.

Parameters
[in]qmiPacketResponse's QMI packet (note: this does not include QMUX header).
[in]qmiPacketSizeNumber of bytes in response's QMI packet.
[in]pResponseCallbackContextUser context supplied when QMI transaction was initialized.

This structure abstracts a QMI transaction. It is responsible for tracking a QMI request to its response.

Parameters
inUse
  • true indicates that this object has been allocated by the QMI service and is un use.
transactionId
  • QMI transaction ID. Upper limit 0xffff for regular QMI services, 0xff for CTL service.
messageId
  • QMI message ID.
pResponseCallback
  • User callback for QMI response.
pResponseCallbackContext
  • User context for user callback.

Function Documentation

void QmiTransaction_Initialize ( QmiTransaction pThis,
uint16_t  transactionId,
uint16_t  messageId,
QMI_RESPONSE_CALLBACK  pResponseCallback,
void *  pResponseCallbackContext 
)

Initialize QMI transaction.

Parameters
[in]pThisThe primary object of this call.
[in]transactionIdTransaction ID obtained from a call to QmiService_GetNextTransactionId.
[in]messageIdQMI message ID.
[in]pResponseCallbackUser function to be be called when QMI response is received.
[in]pResponseCallbackContextA user context for callback.

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved